﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Calvin.Utilities;
using System.IO;

namespace testweb.HTTP上传下载
{
    public partial class filedown : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //FileDown.DownLoadByVirtualPath("大学生2维.doc");
            FileStream steam = new FileStream(Server.MapPath("Androidnxzs(www.greenxf.com).rar"), FileMode.Open, FileAccess.Read);
            Byte[] bytes=new Byte[steam.Length];
            steam.Read(bytes, 0,(int)steam.Length);
            FileDown.DownLoadInBlocks(bytes, 1048576, "aaa.rar");

        }
    }
}